gtk4.git
8 years agoMake the xim module build without root getters
Matthias Clasen [Wed, 9 Aug 2017 00:31:00 +0000 (20:31 -0400)]
Make the xim module build without root getters

This is X specific code anyway, so no need to use
generic GDK api for this.

8 years agoStop passing root window to gdk_device_query_state
Matthias Clasen [Tue, 8 Aug 2017 23:49:29 +0000 (19:49 -0400)]
Stop passing root window to gdk_device_query_state

The backends do the right thing now.

8 years agoAllow passing a NULL window to gdk_device_query_state
Matthias Clasen [Tue, 8 Aug 2017 23:45:09 +0000 (19:45 -0400)]
Allow passing a NULL window to gdk_device_query_state

Interpret NULL as "root window" here - we only have one
screen nowadays, so there is no choice involved, and this
will let us avoid dealing with the root window in the
fontend code.

8 years agoDrop root windows from some internal apis
Matthias Clasen [Tue, 8 Aug 2017 19:43:03 +0000 (15:43 -0400)]
Drop root windows from some internal apis

_gdk_device_query_state was needlessly shuffling
root windows around.

8 years agoDrop keynav for dnd
Matthias Clasen [Tue, 8 Aug 2017 19:28:45 +0000 (15:28 -0400)]
Drop keynav for dnd

This is very much an easter egg, and it is the last place where
we use the root window in libgtk.

8 years agoadwaita: remove min-<lenght> from levelbar blocks
Lapo Calamandrei [Fri, 11 Aug 2017 14:25:40 +0000 (16:25 +0200)]
adwaita: remove min-<lenght> from levelbar blocks

It's not needed and causes issues, see for details:
https://bugzilla.gnome.org/show_bug.cgi?id=783649

8 years agoadwaita: Remove menu margins
Lapo Calamandrei [Fri, 11 Aug 2017 13:07:13 +0000 (15:07 +0200)]
adwaita: Remove menu margins

menu margins have been added has a hack to mitigate bug:
https://bugzilla.gnome.org/show_bug.cgi?id=591258 with gtk+4 this
doesn't work anymore on gtk+4, the margin should probably be moved
to the parent window node, but it's not selectable, commenting out
for now.

8 years agoUpdate Polish translation
Piotr Drąg [Thu, 10 Aug 2017 22:05:26 +0000 (00:05 +0200)]
Update Polish translation

8 years agowidget: Remove gtk_widget_set_redraw_on_alloc
Timm Bäder [Wed, 9 Aug 2017 14:26:26 +0000 (16:26 +0200)]
widget: Remove gtk_widget_set_redraw_on_alloc

Since gtk+ draws more than the widget and allocates more size to it than
it knows about, this flag doesn't work anymore. Removing it (or setting
it to TRUE for widgets that used to set it to FALSE) fixes drawing
invalidation when these widgets get allocated a new size.

8 years agoGdkWindow: Remove gdk_window_new_input
Timm Bäder [Wed, 9 Aug 2017 13:19:46 +0000 (15:19 +0200)]
GdkWindow: Remove gdk_window_new_input

Not needed anymore.

8 years agoDuplicate the TIC strings before NULLing the GObject data.
John Ralls [Tue, 8 Aug 2017 20:15:46 +0000 (23:15 +0300)]
Duplicate the TIC strings before NULLing the GObject data.

NULLing the data strings in GObject frees and invalidates the pointers
returned by g_object_get_data so we need our own copy of the values.

8 years agoRevert "levelbar: Don't underallocate block widgets"
Daniel Boles [Tue, 8 Aug 2017 17:58:13 +0000 (18:58 +0100)]
Revert "levelbar: Don't underallocate block widgets"

This reverts commit e25e1c54a44264de628fb3919fb47afd44e21ba5.

That commit causes a block always to be shown at the min side, even when
the value is 0, in which case, no fill should be shown.

https://bugzilla.gnome.org/show_bug.cgi?id=783649

8 years ago3.91.2
Matthias Clasen [Tue, 8 Aug 2017 01:57:58 +0000 (21:57 -0400)]
3.91.2

8 years agoFix docs build
Matthias Clasen [Tue, 8 Aug 2017 02:18:24 +0000 (22:18 -0400)]
Fix docs build

8 years agoContainer: Don’t scroll to unset focus child coord
Daniel Boles [Mon, 7 Aug 2017 17:32:57 +0000 (18:32 +0100)]
Container: Don’t scroll to unset focus child coord

In gtk_container_real_set_focus_child(), we try to scroll to the
position of the new :focus-child if we have h or v adjustments.

gtk_widget_translate_coordinates() returns FALSE if neither widget is
realized or in other situations that cause output parameters x and y not
to be set. Thus, if the caller did not initialise x/y and uses them even
if the function returned FALSE, they are using uninitialised variables.

In gtk_container_real_set_focus_child(), we did not check the return
value but merrily went ahead and used x and y regardless. This is UB, as
revealed by Valgrind, as well as being pointless.

The trivial fix is to exit early if (!gtk_widget_translate_coordinates).

https://bugzilla.gnome.org/show_bug.cgi?id=776909

8 years agoContainer: Fix scrolled coord in set_focus_child()
Daniel Boles [Mon, 7 Aug 2017 17:25:28 +0000 (18:25 +0100)]
Container: Fix scrolled coord in set_focus_child()

Commit 885bcd9fe4b6b4ecb003570ea0520cf42ec737a9 trampled the bit here
that is meant to translate between the nominated focus child and the
actual innermost one that is used for updating the h/v adjustments.

So, we need to save the passed focus child before diving into its
children, then translate and get allocations between them both. This
makes GTK+ 4 behave like GTK+ 3 again: instead of priv->focus_child and
focus_child, we now have focus_child and child, serving the roles of the
nominated focus child and its innermost focus child respectively.

This also ditches the unnecessary call to Widget:get_focus_child(), as
Container::set_focus_child() gets that same new child as an argument.

8 years agoAccelLabel: set_accel_closure() arg is nullable
Daniel Boles [Mon, 7 Aug 2017 09:32:13 +0000 (10:32 +0100)]
AccelLabel: set_accel_closure() arg is nullable

8 years agoAccelLabel: set_accel_widget() arg is nullable
Daniel Boles [Mon, 7 Aug 2017 09:27:52 +0000 (10:27 +0100)]
AccelLabel: set_accel_widget() arg is nullable

8 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 7 Aug 2017 08:07:50 +0000 (10:07 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Mon, 7 Aug 2017 07:10:37 +0000 (09:10 +0200)]
Updated Slovenian translation

8 years agoUpdate Friulian translation
Fabio Tomat [Mon, 7 Aug 2017 06:04:19 +0000 (06:04 +0000)]
Update Friulian translation

8 years agowindow: Fix traversal of popovers during picking
Carlos Garnacho [Sun, 6 Aug 2017 20:17:27 +0000 (22:17 +0200)]
window: Fix traversal of popovers during picking

These need to be traversed in the opposite direction. Given the order is
opposite to rendering, use a GQueue so it's cheap to traverse/add either
way.

8 years agoHeaderBar: Use less clashing appmenu fallback icon
Daniel Boles [Sun, 6 Aug 2017 17:03:27 +0000 (18:03 +0100)]
HeaderBar: Use less clashing appmenu fallback icon

process-stop-symbolic is unintuitive if represented as a stop sign as in
Adwaita, and completely ambiguous if represented as a cross like the
window close button in other icon themes.

Instead, use application-x-executable, which is already used elsewhere
as a fallback if no specific icon can be found for the application.

https://bugzilla.gnome.org/show_bug.cgi?id=784624

8 years agodocs: gtk/running: Document the GTK_CSD env var
Daniel Boles [Sun, 6 Aug 2017 16:42:17 +0000 (17:42 +0100)]
docs: gtk/running: Document the GTK_CSD env var

It was not documented before.

https://bugzilla.gnome.org/show_bug.cgi?id=778791#c1

8 years agoAccelLabel: Fix typos of Ctl to Ctrl
Daniel Boles [Sun, 6 Aug 2017 16:35:07 +0000 (17:35 +0100)]
AccelLabel: Fix typos of Ctl to Ctrl

8 years agoicon-browser: Add missing document-edit icon
Daniel Boles [Sun, 6 Aug 2017 02:24:04 +0000 (03:24 +0100)]
icon-browser: Add missing document-edit icon

https://bugzilla.gnome.org/show_bug.cgi?id=777515

8 years agogdkdisplay: Remove a pointless assignment
Daniel Boles [Sun, 6 Aug 2017 00:11:34 +0000 (01:11 +0100)]
gdkdisplay: Remove a pointless assignment

https://bugzilla.gnome.org/show_bug.cgi?id=784016

8 years agoEnough with the beeping!
Matthias Clasen [Sat, 5 Aug 2017 23:31:52 +0000 (19:31 -0400)]
Enough with the beeping!

Don't beep when modifiers are released in entries.
This was an inadvertent change that snuck in with
the emoji support.

Also, don't beep while entering an emoji name.
There is entirely too much beeping here.

8 years agoUse the right gettext domain
Matthias Clasen [Sat, 5 Aug 2017 22:17:29 +0000 (18:17 -0400)]
Use the right gettext domain

Most of our .ui files were still using the gtk30 domain,
despite the library having switched to gtk40. Fix this.

8 years agoAccelLabel: Fix displaying accel unichars >= 0x80
Daniel Boles [Sat, 5 Aug 2017 19:21:28 +0000 (20:21 +0100)]
AccelLabel: Fix displaying accel unichars >= 0x80

In GTK+ 2, the ch < 0x80 was ORd with klass->latin1_to_char, and that
was unconditionally set to TRUE in the class init function, so
effectively the ch < 0x80 never mattered before or served any purpose.

When klass->latin1_to_char was deleted from the class in commit
f760538f17673c5bd7fec792be2f1abf8148fc32, this check’s sense changed.

The resuls was that accel keyvals with gunichar value >= 0x80 stopped
being rendered as symbols, instead falling back to their keysym name.
Instead of recognisable symbols for these, we get raw, often obscure,
and untranslatable keysym names. This breaks accessibility as well as
client users who may be parsing such accels and migrating from GTK+ 2.

So, remove the < 0x80 to restore the behaviour from before said commit.

https://bugzilla.gnome.org/show_bug.cgi?id=783906

8 years agoCenterBox: minor tweaks to doc blurb
Daniel Boles [Sat, 5 Aug 2017 17:57:08 +0000 (18:57 +0100)]
CenterBox: minor tweaks to doc blurb

8 years agoCenterBox: Add missing nullable annotations
Daniel Boles [Sat, 5 Aug 2017 17:56:01 +0000 (18:56 +0100)]
CenterBox: Add missing nullable annotations

https://bugzilla.gnome.org/show_bug.cgi?id=785280

8 years agoCenterBox: Guard against directly including header
Daniel Boles [Sat, 5 Aug 2017 17:44:02 +0000 (18:44 +0100)]
CenterBox: Guard against directly including header

https://bugzilla.gnome.org/show_bug.cgi?id=785280

8 years agocenterbox: Add G_BEGIN_DECLS and G_END_DECLS
Kjell Ahlstedt [Sat, 5 Aug 2017 09:26:42 +0000 (11:26 +0200)]
centerbox: Add G_BEGIN_DECLS and G_END_DECLS

https://bugzilla.gnome.org/show_bug.cgi?id=785280

8 years agoAdd support for entering emoji by name
Matthias Clasen [Fri, 4 Aug 2017 04:54:15 +0000 (00:54 -0400)]
Add support for entering emoji by name

This commit adds some basic support for entering emoji by name
to GtkIMContextSimple. To begin an emoji sequence, use Ctrl-Shift-e
instead of Ctrl-Shift-u that is used for hex input. Otherwise, the
behavior is the same: you can can let go of the modifier keys and
end the sequence with space or enter, or hold on to the modifier
keys and end the sequence by releasing them.

Only a limited, fixed set of names is supported at this time, see
the GtkIMContextSimple docs for a full list.

8 years agogskrendernodeimpl: Fix leak of cairo_pattern_t
Daniel Boles [Thu, 3 Aug 2017 23:18:13 +0000 (00:18 +0100)]
gskrendernodeimpl: Fix leak of cairo_pattern_t

It was not destroyed after setting it on the cairo_context_t, as it is
in every other case.

https://bugzilla.gnome.org/show_bug.cgi?id=785793

8 years agoWindow: Also quote Window address in Popover error
Daniel Boles [Thu, 3 Aug 2017 20:09:25 +0000 (21:09 +0100)]
Window: Also quote Window address in Popover error

This is symmetrical with how we already do that for the Popover, and it
could be useful for debugging.

8 years agowidget-factory: Add tooltip to Entry icon
Daniel Boles [Thu, 3 Aug 2017 19:42:54 +0000 (20:42 +0100)]
widget-factory: Add tooltip to Entry icon

just to show we can.

8 years agoFix some nullable Returns annotations
Daniel Boles [Thu, 3 Aug 2017 19:26:18 +0000 (20:26 +0100)]
Fix some nullable Returns annotations

based on reports and patches by Iñaki García Etxebarria:

https://bugzilla.gnome.org/show_bug.cgi?id=781246
https://bugzilla.gnome.org/show_bug.cgi?id=785423

8 years agoinspector: Fix object title label alignment
Timm Bäder [Thu, 3 Aug 2017 16:24:42 +0000 (18:24 +0200)]
inspector: Fix object title label alignment

Re-center it after the center-child removal in GtkBox and the addition
of GtkCenterBox.

8 years agoGtkFixed: Update documentation intro
Daniel Boles [Thu, 3 Aug 2017 11:42:20 +0000 (12:42 +0100)]
GtkFixed: Update documentation intro

• Add GtkLayout as a @See_also since it includes fixed-pos functionality
• Drop mention of the long-gone Linux framebuffer port
• Explain how to work around the problems with RTL text

8 years agoUpdated Czech translation
Marek Cernocky [Thu, 3 Aug 2017 09:51:09 +0000 (11:51 +0200)]
Updated Czech translation

8 years agoLayout: Tweak documentation blurb
Daniel Boles [Thu, 3 Aug 2017 09:13:52 +0000 (10:13 +0100)]
Layout: Tweak documentation blurb

Being addable to a ScrolledWindow is not interesting; now that SW
auto-adds a Viewport if needed, so can DrawingArea and any other widget.

Mention GtkFixed in case the reader just wants that bit of functionality

8 years agoentry: get_icon_area returns in entry coordinates
Timm Bäder [Thu, 3 Aug 2017 09:14:53 +0000 (11:14 +0200)]
entry: get_icon_area returns in entry coordinates

This fixes the popover positions in the gtk4-demo/popovers, and it also
just makes sense. Also document what the returned coordinates are
relatiev to.

8 years agopopover: Fix arrow position
Timm Bäder [Thu, 3 Aug 2017 09:03:39 +0000 (11:03 +0200)]
popover: Fix arrow position

Remove all the manual css margin handling since that's being done for us
automatically now.

8 years agoUpdate POTFILES.in
Piotr Drąg [Wed, 2 Aug 2017 16:05:30 +0000 (18:05 +0200)]
Update POTFILES.in

8 years agoeventbox: Remove
Benjamin Otte [Wed, 2 Aug 2017 15:59:09 +0000 (16:59 +0100)]
eventbox: Remove

8 years agotexthandle: Don't use GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:58:47 +0000 (16:58 +0100)]
texthandle: Don't use GtkEventBox

8 years agotestsuite: Don't use GtkEventBox in gestures test
Benjamin Otte [Wed, 2 Aug 2017 15:58:17 +0000 (16:58 +0100)]
testsuite: Don't use GtkEventBox in gestures test

8 years agoa11y: Remove check for GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:58:05 +0000 (16:58 +0100)]
a11y: Remove check for GtkEventBox

8 years agodocs: Don't use GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 15:55:25 +0000 (16:55 +0100)]
docs: Don't use GtkEventBox

8 years agotestsuite: Remove GtkEventBox from a11y test
Benjamin Otte [Wed, 2 Aug 2017 15:47:39 +0000 (16:47 +0100)]
testsuite: Remove GtkEventBox from a11y test

8 years agoiconbrowser: Remove GtkEventBox usage
Benjamin Otte [Wed, 2 Aug 2017 13:50:19 +0000 (14:50 +0100)]
iconbrowser: Remove GtkEventBox usage

8 years agogtk-demo: Get rid of GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 12:59:26 +0000 (13:59 +0100)]
gtk-demo: Get rid of GtkEventBox

8 years agocellaccel: Get rid of GtkEventBox
Benjamin Otte [Wed, 2 Aug 2017 12:49:36 +0000 (13:49 +0100)]
cellaccel: Get rid of GtkEventBox

Can't test the code atm because treeview editing is broken, let's hope
it works once that's fixed.

8 years agoplacessidebar: Remove EventBox usage
Benjamin Otte [Wed, 2 Aug 2017 12:12:17 +0000 (13:12 +0100)]
placessidebar: Remove EventBox usage

8 years agoplacesview: Remove event box usage
Benjamin Otte [Wed, 2 Aug 2017 11:12:58 +0000 (12:12 +0100)]
placesview: Remove event box usage

8 years agomeson: Add missing Wayland protocol
Emmanuele Bassi [Wed, 2 Aug 2017 11:31:30 +0000 (12:31 +0100)]
meson: Add missing Wayland protocol

GDK depends on a new Wayland protocol.

8 years agowayland: add shortcut inhibitor support
Olivier Fourdan [Wed, 22 Mar 2017 09:21:02 +0000 (10:21 +0100)]
wayland: add shortcut inhibitor support

This adds support for the shortcut inhibitor protocol in gdk/wayland
backend.

A shortcut inhibitor request is issued from the gdk wayland backend for
both the older, deprecated API gdk_device_grab() and the new gdk seat
API gdk_seat_grab(), but only if the requested capability is for the
keyboard only.

https://bugzilla.gnome.org/show_bug.cgi?id=783343

8 years agoreftests: Always wait for rendering to settle
Benjamin Otte [Wed, 2 Aug 2017 10:32:50 +0000 (11:32 +0100)]
reftests: Always wait for rendering to settle

We wait for a few 100ms for rendering to settle in various WMs. So far
we only did that for windows that were controlled by the WM (aka
toplevels).

With modern compositing gnome-shell however, this now also applies to
override-redirect windows, so we now wait there, too.

This makes the reftests a lot slower, but they now actually work when
running make check in gnome-shell.

8 years agoreftests: Remove event box usage
Benjamin Otte [Wed, 2 Aug 2017 09:52:30 +0000 (10:52 +0100)]
reftests: Remove event box usage

8 years agotestuite: Remove EventBox from builder test
Benjamin Otte [Wed, 2 Aug 2017 09:48:01 +0000 (10:48 +0100)]
testuite: Remove EventBox from builder test

8 years agoUpdated Slovenian translation
Matej Urbančič [Wed, 2 Aug 2017 08:42:45 +0000 (10:42 +0200)]
Updated Slovenian translation

8 years agowidget: Constify state parameter of propagate_state
Timm Bäder [Tue, 1 Aug 2017 19:31:24 +0000 (21:31 +0200)]
widget: Constify state parameter of propagate_state

Makes sense.

8 years agowidget: Don't try to propagate 0 state flags
Timm Bäder [Tue, 1 Aug 2017 19:30:20 +0000 (21:30 +0200)]
widget: Don't try to propagate 0 state flags

This happens quite often and has no effect anyway.

8 years agowidget: Fix size_allocate's out_clip annotation
Timm Bäder [Tue, 1 Aug 2017 17:39:32 +0000 (19:39 +0200)]
widget: Fix size_allocate's out_clip annotation

8 years agotestgtk: Actually expand the scrolled window
Benjamin Otte [Tue, 1 Aug 2017 23:23:43 +0000 (00:23 +0100)]
testgtk: Actually expand the scrolled window

8 years agotestgtk: Get rid of GtkEventBox
Benjamin Otte [Tue, 1 Aug 2017 23:20:53 +0000 (00:20 +0100)]
testgtk: Get rid of GtkEventBox

8 years agotests: Get rid of GtkEventBox
Benjamin Otte [Tue, 1 Aug 2017 22:49:42 +0000 (23:49 +0100)]
tests: Get rid of GtkEventBox

8 years agobindings: Avoid iterating array if it is never set
Daniel Boles [Tue, 1 Aug 2017 19:41:23 +0000 (20:41 +0100)]
bindings: Avoid iterating array if it is never set

If query.return_type is not one we want, binding_compose_params() is
not called, and so params remains a NULL pointer. However, the code was
then unconditionally iterating it regardless. Don't if it is still NULL.

CID 1452218 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
15. var_deref_op: Dereferencing null pointer params.

8 years agocssselector: Ensure we do not index out of bounds
Daniel Boles [Tue, 1 Aug 2017 18:57:51 +0000 (19:57 +0100)]
cssselector: Ensure we do not index out of bounds

This would only happen if the last element was deprecated, but it should
be avoided anyway.

CID 1388852 (#1 of 1): Out-of-bounds read (OVERRUN)
12. overrun-local: Overrunning array pseudo_classes of 16 32-byte
elements at element index 16 (byte offset 512) using index i + 1U (which
evaluates to 16).

8 years agoNotebook: Remove null check after dereference
Daniel Boles [Tue, 1 Aug 2017 18:45:57 +0000 (19:45 +0100)]
Notebook: Remove null check after dereference

This function clearly assumes the parameter children cannot be NULL, and
the call sites seem to perform enough checks to confirm this.

CID 1388869 (#1 of 1): Dereference before null check (REVERSE_INULL)
check_after_deref: Null-checking children suggests that it may be null,
but it has already been dereferenced on all paths leading to the check.

8 years agoCalendar: Add default case to appease Coverity
Daniel Boles [Tue, 1 Aug 2017 18:42:17 +0000 (19:42 +0100)]
Calendar: Add default case to appease Coverity

CID 1432024 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value rect.x when calling
calendar_arrow_rectangle.

Add a default case to the switch which will bail out with
g_assert_not_reached(), which should reassure Coverity that the method
is always called with a valid value that is handled in the switch.

8 years agocssbordervalue: Fix possible use of uninitialised
Daniel Boles [Tue, 1 Aug 2017 18:31:20 +0000 (19:31 +0100)]
cssbordervalue: Fix possible use of uninitialised

If value->values[i] is NULL, then values[i] was left uninitialised.
The code then reads each element of values[].

CID 1432029 (#1 of 1): Uninitialized pointer read (UNINIT)
11. uninit_use: Using uninitialized value values[i].

8 years agoStack: Fix copy-paste error
Daniel Boles [Tue, 1 Aug 2017 18:18:39 +0000 (19:18 +0100)]
Stack: Fix copy-paste error

This fixes Coverity CID 1452217.

8 years agoEntry: Fix unset icon tooltip hiding Entry tooltip
Daniel Boles [Tue, 1 Aug 2017 09:09:01 +0000 (10:09 +0100)]
Entry: Fix unset icon tooltip hiding Entry tooltip

Our ::query-tooltip handler first checks whether the pointer is over any
of the icons, returning their tooltip if so, and if not chains up to
Widget::query-tooltip in order to show the text for the widget overall.

But ensure_has_tooltip(), which exists to update :has-tooltip based on
whether ::query-tooltip is needed, only set :has-tooltip to TRUE if any
icon had a tooltip, without caring whether the widget as a whole does.

That is asymmetrical and meant that if the Entry had a tooltip, but
subsequently all icons had their tooltips unset, :has-tooltip would be
set to FALSE, and hence the tooltip for the widget would become lost.

The fix is to set :has-tooltip to TRUE if the widget has a tooltip of
its own, and we only need to check the icons if that is not the case.

https://bugzilla.gnome.org/show_bug.cgi?id=785672

8 years agoEntry: Warn about corner case hiding icon tooltips
Daniel Boles [Tue, 1 Aug 2017 12:35:39 +0000 (13:35 +0100)]
Entry: Warn about corner case hiding icon tooltips

https://bugzilla.gnome.org/show_bug.cgi?id=785672#c4

8 years agowidget: Unset PRELIGHT and ACTIVE state in _set_sensitive
Timm Bäder [Tue, 1 Aug 2017 16:43:42 +0000 (18:43 +0200)]
widget: Unset PRELIGHT and ACTIVE state in _set_sensitive

They both depend on input, which an insensitive widget does not receive.

8 years agobutton: Stop fiddling with PRELIGHT state
Timm Bäder [Tue, 1 Aug 2017 16:16:40 +0000 (18:16 +0200)]
button: Stop fiddling with PRELIGHT state

This is done automatically now and it's wrong here since it gets
executed after gesture release.

8 years agoscale: Allocate the value next to the slider
Timm Bäder [Tue, 1 Aug 2017 09:34:23 +0000 (11:34 +0200)]
scale: Allocate the value next to the slider

... when vertical. Also fixes usage of the uninitialized value_alloc.y.

8 years agoVisual Studio builds: Adapt to new glib-mkenums
Chun-wei Fan [Tue, 1 Aug 2017 08:05:57 +0000 (16:05 +0800)]
Visual Studio builds: Adapt to new glib-mkenums

glib-mkenums is now done in Python, but since the Visual Studio build
environment (cmd.exe) does not support shebang lines, we need to call
the interpretor explicitly to run the script.

This means that we need to update on how we generate
gsk/gskenumtypes.[c|h] in our projects, as at this point GTK+-3.91.x
does not require a GLib installation that ships with the Python-fied
glib-mkenums.  As a result, we adapt to this by first using Python
to call glib-mkenums.  If this fails (where the output file becomes 0
in size), then we use PERL to call the glib-mkenums script.  Note that
during the build this will cause a warning message to be displayed,
stating that '&' cannot be found, but due to the way Windows .bat script
are done, we need to live with that until a solution can be found on
this.

This is likely a problem that does not exist in the Meson builds, as
Meson will take care of calling the interpretor for us by looking at
the shebang lines for our case.

Also, clean up the .batin Windows batch script that is used to call
glib-mkenums by using a for loop in there.

8 years agotestentryicons: Set tooltips on all icons
Daniel Boles [Mon, 31 Jul 2017 18:33:38 +0000 (19:33 +0100)]
testentryicons: Set tooltips on all icons

Just to test tooltips in all cases; what was already here
should have been sufficient, but this doesn't hurt.

While here, also add some instructive placeholder text.

https://bugzilla.gnome.org/show_bug.cgi?id=780938

8 years agoMSVC builds: Allow different Python versions per toolset
Chun-wei Fan [Mon, 31 Jul 2017 09:25:56 +0000 (17:25 +0800)]
MSVC builds: Allow different Python versions per toolset

Use conditionals to select the Python installation, so that we can stick
closer to the default Visual Studio versions used to compile each official
Python releases.

This means by default:
-2013 builds use Python 3.4.x, which is built with 2010
-2015 and 2017 builds use Python 3.6.x, which is built with 2015.

Also rename PythonPath/PythonPathX64 in the property sheets to
PythonDir/PythonDirX64 repsectively, as PythonPath is the envvar name
where additional Python modules is searched for, so we don't want to get
confused with it.

Last but not least, distinguish between the Python interpretors that are
used on x64 and x86/32-bit builds for generating the libgtk4.manifest
file and the gdbus-generated sources, for consistency reasons.

8 years agoentry: Remove unused/duplicate widget in IconInfo
Daniel Boles [Sun, 30 Jul 2017 12:25:23 +0000 (13:25 +0100)]
entry: Remove unused/duplicate widget in IconInfo

8 years agowidget: Don't access highlight_resize in non-debug builds
Timm Bäder [Fri, 28 Jul 2017 19:28:32 +0000 (21:28 +0200)]
widget: Don't access highlight_resize in non-debug builds

The GtkWidgetPrivate struct only contains that member if G_ENABLE_DEBUG
is defined.

8 years agoeventbox: Remove visible-window property
Timm Bäder [Thu, 27 Jul 2017 19:53:42 +0000 (21:53 +0200)]
eventbox: Remove visible-window property

The GdkWindow that was supposed to back it is gone.

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:34 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:22 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agoUpdated Slovenian translation
Matej Urbančič [Thu, 27 Jul 2017 13:46:07 +0000 (15:46 +0200)]
Updated Slovenian translation

8 years agogtklabel: Fix touch link handling under wayland
Carlos Garnacho [Tue, 25 Jul 2017 14:18:07 +0000 (16:18 +0200)]
gtklabel: Fix touch link handling under wayland

Refactor the code updating the active link under the current coordinates
into a separate function, and call it on GtkGestureMultiPress::pressed
so the link is updated on GDK_TOUCH_BEGIN. Based on a patch by
Jan-Michael Brummer <jan.brummer@tabos.org>.

https://bugzilla.gnome.org/show_bug.cgi?id=776903

8 years agogtklinkbutton: Set cursor on button's event window
Carlos Garnacho [Tue, 25 Jul 2017 13:46:01 +0000 (15:46 +0200)]
gtklinkbutton: Set cursor on button's event window

It is not necessary to (re)set the cursor on every crossing
event, and can probably yield the wrong results if there are
multiple master devices involved. Just set it on init(), and
let the inner machinery update the cursor whenever necessary.

This patch is an adaption of commit 0daf79676 in gtk-3-22, the
side effects are not as bad here because the cursor was already
being set on the widget specifically instead of the parent
widget's, but there's still some nonetheless (plus, it's simpler)

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agowayland: Clear tablet tool cursor on proximity out
Carlos Garnacho [Tue, 25 Jul 2017 13:44:30 +0000 (15:44 +0200)]
wayland: Clear tablet tool cursor on proximity out

This ensures that the tablet tool will get the cursor updated even if it
happens to fall within the same window again on the next proximity in.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agogdkwindow: Update cursor for tablet tools in the window
Carlos Garnacho [Tue, 25 Jul 2017 13:37:10 +0000 (15:37 +0200)]
gdkwindow: Update cursor for tablet tools in the window

This check must be done explicitly on Wayland as the master device for
tablet tools differ from the Core Pointer. This ensures that whenever a
tablet tool is inside a window and the cursor is programmatically changed,
it will be visually updated too.

https://bugzilla.gnome.org/show_bug.cgi?id=785375

8 years agowayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()
Carlos Garnacho [Tue, 25 Jul 2017 13:35:41 +0000 (15:35 +0200)]
wayland: Observe GDK_SEAT_CAPABILITY_TABLET_STYLUS on gdk_seat_get_slaves()

This flag wasn't being honored so far...

8 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 25 Jul 2017 18:16:59 +0000 (20:16 +0200)]
Updated Spanish translation

8 years agoUpdate Croatian translation
gogo [Tue, 25 Jul 2017 17:43:59 +0000 (17:43 +0000)]
Update Croatian translation

8 years agoactionbar: Call g_object_class_install_properties()
Kjell Ahlstedt [Mon, 24 Jul 2017 08:19:05 +0000 (10:19 +0200)]
actionbar: Call g_object_class_install_properties()

https://bugzilla.gnome.org/show_bug.cgi?id=785318

8 years agoAvoid the use of g_autofree
Matthias Clasen [Mon, 24 Jul 2017 17:24:33 +0000 (13:24 -0400)]
Avoid the use of g_autofree

We can't use this in code that may be built on win32,
so lets just not use it at all.

8 years agowidget: Stop invalidating recursively
Timm Bäder [Sun, 23 Jul 2017 19:39:38 +0000 (21:39 +0200)]
widget: Stop invalidating recursively

8 years agoupdated Punjabi Translation
A S Alam [Sun, 23 Jul 2017 14:59:04 +0000 (09:59 -0500)]
updated Punjabi Translation